<?php

class Control_Model_Form_About extends Zend_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);
        $this->setName('About');

        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');

        $title = new Zend_Form_Element_Text('title');
        $title->setLabel('Technic:')
            ->setRequired(true)
            ->addFilter('StripTags')
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setAttrib('size', 50);

        $text = new Zend_Form_Element_Textarea('text');
        $text->setLabel('Case study:')
            ->setRequired(true)
            ->addValidator('NotEmpty')
            ->setAttrib('class', 'elrte');
//            ->setAttrib('rows', 20)
//            ->setAttrib('cols', 50);

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

        $this->addElements(array($id, $title, $text, $submit));
    }
}